package pl.put.to.classification.verification.error;

public class ZawiasErrorVerificator extends AErrorVeryficator {

	@Override
	protected double modifyError(double currentError, double margin) {
		double error = currentError;
		
		boolean classifitcationCorrect = (margin > 1);
		
		if (!classifitcationCorrect) {
			error += 1 - margin;
		}
		
		return error;
	}
}
